#include "pch.h"
#include "TessellationDemo.h"
#include "Scene.h"

CTessellationDemo::CTessellationDemo()
{

}

CTessellationDemo::~CTessellationDemo()
{

}

void CTessellationDemo::init(mini::CEngine* pEngine)
{
	auto pActor = pEngine->getCurrentScene()->findActorByName("ground");
	if (nullptr != pActor && mini::EntityType::Tessellation == pActor->getEntityType())
	{
		auto pTessellation = dynamic_cast<mini::CTessellation*>(pActor);
		mini::CPoint4F data = { 12, 0, 0, 0 };
		pTessellation->updateHullData("TessellationBuffer",  &data );
	}
}
